package com.sky.mapper;


import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {


    /**
     * 查看购物车
     * @param currentId
     * @return
     */
    List<ShoppingCart> getByUserId(Long currentId);



    void cleanShoppingCart(Long currentId);

    ShoppingCart getByCondition(ShoppingCart shoppingCart);

    void update(ShoppingCart cart);

    void insert(ShoppingCart cart);
}
